Paul Eggert [Sat, 9 Jul 2011 07:06:04 +0000 (00:06 -0700)]
Merge from trunk.
Paul Eggert [Sat, 9 Jul 2011 07:01:24 +0000 (00:01 -0700)]
* image.c: Integer signedness and overflow and related fixes.
This is not an exhaustive set of fixes, but it's time to
record what I've got.
(lookup_pixel_color, check_image_size): Remove redundant decls.
(check_image_size): Don't assume that arbitrary EMACS_INT values
fit in 'int', or that arbitrary 'double' values fit in 'int'.
(x_alloc_image_color, x_create_x_image_and_pixmap, png_load)
(tiff_load, imagemagick_load_image):
Check for overflow in size calculations.
(x_create_x_image_and_pixmap): Remove unnecessary test for
xmalloc returning NULL; that can't happen.
(xbm_read_bitmap_data): Don't assume sizes fit into 'int'.
(xpm_color_bucket): Use better integer hashing function.
(xpm_cache_color): Don't possibly over-allocate memory.
(struct png_memory_storage, tiff_memory_source, tiff_seek_in_memory)
(gif_memory_source):
Use ptrdiff_t, not int or size_t, to record sizes.
(png_load): Don't assume values greater than 2**31 fit in 'int'.
(our_stdio_fill_input_buffer): Prefer ptrdiff_t to size_t when
either works, as we prefer signed integers.
(tiff_read_from_memory, tiff_write_from_memory):
Return tsize_t, not size_t, since that's what the TIFF API wants.
(tiff_read_from_memory): Don't fail simply because the read would
go past EOF; instead, return a short read.
(tiff_load): Omit no-longer-needed casts.
(Fimagemagick_types): Don't assume size fits into 'int'.
Leo Liu [Sat, 9 Jul 2011 03:11:57 +0000 (11:11 +0800)]
Restore accidental change to insert-register
Glenn Morris [Sat, 9 Jul 2011 00:51:42 +0000 (20:51 -0400)]
* doc/emacs/fortran-xtra.texi (Fortran): Update handled extensions.
Glenn Morris [Sat, 9 Jul 2011 00:50:01 +0000 (20:50 -0400)]
* lisp/subr.el (remq): Handle the empty list. (Bug#9024)
Paul Eggert [Sat, 9 Jul 2011 00:23:12 +0000 (17:23 -0700)]
Merge: Add gnulib's strtoimax module, needed on Solaris 8.
* Makefile.in (GNULIB_MODULES): Add strtoimax.
* lib/strtoll.c, m4/strtoimax.m4, m4/strtoll.m4: New files,
automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Regenerate.
Paul Eggert [Sat, 9 Jul 2011 00:18:49 +0000 (17:18 -0700)]
Add strtoimax module, needed for Solaris 8 port.
* Makefile.in (GNULIB_MODULES): Add strtoimax.
* lib/strtoll.c, m4/strtoimax.m4, m4/strtoll.m4: New files,
automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Regenerate.
Paul Eggert [Fri, 8 Jul 2011 23:52:31 +0000 (16:52 -0700)]
Merge from trunk.
Paul Eggert [Fri, 8 Jul 2011 20:48:32 +0000 (13:48 -0700)]
Fix ChangeLog typos in previous commit.
Paul Eggert [Fri, 8 Jul 2011 20:39:30 +0000 (13:39 -0700)]
Merge: Use pthread_sigmask, not sigprocmask (Bug#9010).
Paul Eggert [Fri, 8 Jul 2011 20:22:17 +0000 (13:22 -0700)]
Merge from trunk.
Paul Eggert [Fri, 8 Jul 2011 20:20:19 +0000 (13:20 -0700)]
Simplify Emacs part of pthread_sigmask support.
* Makefile.in (GNULIB_TOOL_FLAGS): Do not avoid sigprocmask.
* configure.in (AC_TYPE_UID_T): New dummy macro.
Configure gnulib after adjusting LIBS,
so that gnulib can assume the libraries in LIBS.
* lib/pthread_sigmask.c, lib/sigprocmask.c, m4/signalblocking.m4:
New files, automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Regenerate.
* src/Makefile.in (LIB_PTHREAD_SIGMASK): New macro.
(LIBES): Use it.
Paul Eggert [Fri, 8 Jul 2011 20:14:28 +0000 (13:14 -0700)]
Merge from trunk.
Jan D. [Fri, 8 Jul 2011 17:57:55 +0000 (19:57 +0200)]
Better fix that keeps corret margins in tooltip.
* gtkutil.c (qttip_cb): Set line wrap to FALSE for tooltip widget.
(xg_prepare_tooltip): Revert text in x->ttip_lbl, margins was
wrong.
Jan D. [Fri, 8 Jul 2011 17:25:17 +0000 (19:25 +0200)]
Don't let Gtk+ linewrap tooltips.
* gtkutil.c (xg_prepare_tooltip): Fix indentation and comment.
Put text in x->ttip_lbl instead of gtk_tooltip_set_text.
(xg_hide_tooltip): Fix comment.
Andreas Schwab [Fri, 8 Jul 2011 17:02:01 +0000 (19:02 +0200)]
* lisp/mail/sendmail.el (send-mail-function): No longer delay custom
initialization.
* lisp/custom.el (custom-initialize-delay): Doc fix.
Jan D. [Fri, 8 Jul 2011 15:39:40 +0000 (17:39 +0200)]
Fix breakage introduced by fixing Bug#8842.
* nsfns.m (Fx_open_connection): Put NSStringPboardType into
ns_return_type.
* nsterm.m (initFrameFromEmacs): Don't use ns_return_types
in registerServicesMenuSendTypes.
(validRequestorForSendType): Don't check ns_return_types.
Stefan Monnier [Fri, 8 Jul 2011 14:42:36 +0000 (10:42 -0400)]
* lisp/abbrev.el (expand-abbrev): Try to preserve point.
Michael Albinus [Fri, 8 Jul 2011 14:25:25 +0000 (16:25 +0200)]
* net/tramp-sh.el (tramp-sh-handle-start-file-process): Use a
human-friendly prompt.
Stefan Monnier [Fri, 8 Jul 2011 14:02:44 +0000 (10:02 -0400)]
* lisp/vc/vc-bzr.el (vc-bzr-revision-keywords): Remove svn, it's only
provided by a particular plugin.
Jason Rumney [Fri, 8 Jul 2011 12:46:17 +0000 (20:46 +0800)]
* src/w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using
frame struct members of non-existent frames.
Glenn Morris [Fri, 8 Jul 2011 10:19:15 +0000 (06:19 -0400)]
Auto-commit of generated files.
Jan D. [Fri, 8 Jul 2011 10:04:23 +0000 (12:04 +0200)]
Fix warnings in ns*m files: Replace deprecated methods, declare new interfaces.
* emacs.c: Declare unexec_init_emacs_zone.
* nsfns.m (check_ns_display_info): Cast to long and use %ld in error
to avoid warning.
* nsimage.m (allocInitFromFile): Don't use deprecated method
bestRepresentationForDevice on OSX >= 10.6.
* nsmenu.m (fillWithWidgetValue): Don't use depercated method
sizeToFit on OSX >= 10.2.
* nsselect.m (ns_string_from_pasteboard): Don't use deprecated methods
cString and lossyCString on OSX >= 10.4
* nsterm.h (MAC_OS_X_VERSION_10_3, MAC_OS_X_VERSION_10_4)
(MAC_OS_X_VERSION_10_5): Define if not defined.
(EmacsView, EmacsTooltip): Implements NSWindowDelegate on OSX >= 10.6.
(EmacsMenu): Implements NSMenuDelegate on OSX >= 10.6.
(EmacsToolbar): Implements NSToolbarDelegate on OSX >= 10.6.
* nsterm.m (keyDown): Call to wantsToDelayTextChangeNotifications and
variable firstTime not needed on OSX >= 10.6.
(setPosition): setFloatValue:knobProportion: is deprecated on OSX
>= 10.5. Use setKnobProportion, setDoubleValue.
Paul Eggert [Fri, 8 Jul 2011 10:02:24 +0000 (03:02 -0700)]
Merge from gnulib.
Paul Eggert [Fri, 8 Jul 2011 10:00:52 +0000 (03:00 -0700)]
* lib/getopt.c, lib/unistd.in.h, m4/getopt.m4: Merge from gnulib.
Paul Eggert [Fri, 8 Jul 2011 09:38:32 +0000 (02:38 -0700)]
Merge from trunk.
Jan D. [Fri, 8 Jul 2011 08:42:58 +0000 (10:42 +0200)]
* nsgui.h: Fix compiler warning about gnulib redefining verify.
Jan D. [Fri, 8 Jul 2011 08:11:35 +0000 (10:11 +0200)]
Fix services menu empty on OSX 1.6+.
* nsfns.m (Fx_open_connection): Remove NSStringPboardType from
ns_return_types.
(Fns_list_services): Just return Qnil on 10.6, code not working there.
* nsmenu.m (ns_update_menubar): Remove useless setDelegate call
on svcsMenu.
* nsselect.m (ns_get_local_selection): Change to extern (Bug#8842).
* nsterm.h (MAC_OS_X_VERSION_10_6): Define here instead of nsterm.m.
(ns_get_local_selection): Declare.
* nsterm.m (QUTF8_STRING): Declare.
(initFrameFromEmacs): Call registerServicesMenuSendTypes.
(validRequestorForSendType): Return type is (id).
Change indexOfObjectIdenticalTo to indexOfObject.
Check if we have local selection before returning self (Bug#8842).
(writeSelectionToPasteboard): Put local selection into paste board
if we have a local selection (Bug#8842).
(syms_of_nsterm): DEFSYM QUTF8_STRING.
Lars Magne Ingebrigtsen [Fri, 8 Jul 2011 07:42:21 +0000 (09:42 +0200)]
Allow sending mail in "emacs -Q" by not calling customize-save-variable
* mail/smtpmail.el (smtpmail-query-smtp-server): Ditto.
* mail/sendmail.el (sendmail-query-once): If we aren't allowed to
save customizations (with "emacs -Q"), just set the variable
instead of erroring out.
Daiki Ueno [Fri, 8 Jul 2011 01:29:29 +0000 (10:29 +0900)]
Revert the plstore editing feature.
Paul Eggert [Fri, 8 Jul 2011 00:51:25 +0000 (17:51 -0700)]
Improve hashing quality when configured --with-wide-int.
* fns.c (hash_string): New function, taken from sxhash_string.
Do not discard information about ASCII character case; this
discarding is no longer needed.
(sxhash-string): Use it. Change sig to match it. Caller changed.
* lisp.h: Declare it.
* lread.c (hash_string): Remove, since we now use fns.c's version.
The fns.c version returns a wider integer if --with-wide-int is
specified, so this should help the quality of the hashing a bit.
Juri Linkov [Fri, 8 Jul 2011 00:08:53 +0000 (03:08 +0300)]
* lisp/arc-mode.el (archive-zip-expunge, archive-zip-update)
(archive-zip-update-case): Use 7z if found by `executable-find'.
The order of searching the available programs is the same as in
`archive-zip-extract'.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 23:18:23 +0000 (23:18 +0000)]
Merge changes made in Gnus trunk.
gnus-msg.el (gnus-bug): Don't insert user variables. It usually isn't very interesting any more, and it leaks potentially secret data.
(gnus-debug): Removed.
gnus-art.el (gnus-ignored-headers): Removed obsolete and non-working use of :custom-show.
Paul Eggert [Thu, 7 Jul 2011 22:45:25 +0000 (15:45 -0700)]
* emacs.c: Integer overflow minor fix.
(heap_bss_diff): Now uprintmax_t, not unsigned long. All used changed.
Define only if GNU_LINUX.
(main, Fdump_emacs): Set and use heap_bss_diff only if GNU_LINUX.
Chong Yidong [Thu, 7 Jul 2011 22:41:09 +0000 (18:41 -0400)]
Tweak last change to menu descriptions.
* lisp/menu-bar.el (menu-bar-line-wrapping-menu): Revert last change.
(menu-bar-options-menu): Tweak descriptions.
Paul Eggert [Thu, 7 Jul 2011 22:14:22 +0000 (15:14 -0700)]
* dispnew.c: Integer signedness and overflow fixes.
Remove unnecessary forward decls, that were a maintenance hassle.
(history_tick): Now uprintmax_t, so it's more likely to avoid overflow.
All uses changed.
(adjust_glyph_matrix, realloc_glyph_pool, adjust_frame_message_buffer)
(scrolling_window): Use ptrdiff_t, not int, for byte count.
(prepare_desired_row, line_draw_cost):
Use int, not unsigned, where either works.
(save_current_matrix, restore_current_matrix):
Use ptrdiff_t, not size_t, where either works.
(init_display): Check for overflow more accurately, and without
relying on undefined behavior.
Paul Eggert [Thu, 7 Jul 2011 21:52:44 +0000 (14:52 -0700)]
* editfns.c (pWIDE, pWIDElen, signed_wide, unsigned_wide):
Remove, replacing with the new symbols in lisp.h. All uses changed.
* fileio.c (make_temp_name):
* filelock.c (lock_file_1, lock_file):
* xdisp.c (message_dolog):
Don't assume PRIdMAX etc. works; this isn't portable to pre-C99 hosts.
Use pMd etc. instead.
* lisp.h (printmax_t, uprintmax_t, pMd, pMu): New types and macros,
replacing the pWIDE etc. symbols removed from editfns.c.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 21:43:38 +0000 (23:43 +0200)]
Make all the Options menu items into verb phrases
* menu-bar.el (menu-bar-line-wrapping-menu): Also refill to fit under
80 columns.
Tassilo Horn [Thu, 7 Jul 2011 20:42:30 +0000 (22:42 +0200)]
2011-07-07 Tassilo Horn <tassilo@member.fsf.org>
* themes/tsdh-light-theme.el:
* themes/tsdh-dark-theme.el: Make `gnus-button' face inherit from
`button', `gnus-header-name' boxed, and define `rcirc-my-nick'
face.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 20:37:54 +0000 (22:37 +0200)]
* text.texi (Special Properties): Clarify the format of `face'
Chong Yidong [Thu, 7 Jul 2011 20:35:28 +0000 (16:35 -0400)]
Document some Info functions (Bug#1084).
* lisp/info.el (info, Info-read-node-name-2, Info-read-node-name-1)
(Info-read-node-name): Doc fix.
Chong Yidong [Thu, 7 Jul 2011 18:31:57 +0000 (14:31 -0400)]
Doc fixes for thingatpt.el.
* lisp/thingatpt.el (forward-thing, bounds-of-thing-at-point)
(thing-at-point, beginning-of-thing, end-of-thing, in-string-p)
(end-of-sexp, beginning-of-sexp)
(thing-at-point-bounds-of-list-at-point, forward-whitespace)
(forward-symbol, forward-same-syntax, word-at-point)
(sentence-at-point): Doc fix (Bug#1144).
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 18:28:25 +0000 (20:28 +0200)]
(Info-mode-map): Remove S-TAB binding, since [backtab] should cover it
Paul Eggert [Thu, 7 Jul 2011 17:55:38 +0000 (10:55 -0700)]
* keyboard.h (num_input_events): Now uintmax_t.
This is (very slightly) less likely to mess up due to wraparound.
All uses changed.
Paul Eggert [Thu, 7 Jul 2011 17:51:05 +0000 (10:51 -0700)]
* buffer.c: Integer signedness fixes.
(alloc_buffer_text, enlarge_buffer_text):
Use ptrdiff_t rather than size_t when either will do, as we prefer
signed integers.
Paul Eggert [Thu, 7 Jul 2011 17:42:28 +0000 (10:42 -0700)]
* bidi.c: Integer signedness and overflow fixes.
(bidi_cache_idx, bidi_cache_last_idx, bidi_cache_fetch_state)
(bidi_cache_search, bidi_cache_find_level_change)
(bidi_cache_iterator_state, bidi_cache_find, bidi_find_other_level_edge)
(bidi_dump_cached_states):
Don't arbitrarily limit cache indexes to int; use ptrdiff_t instead.
(bidi_cache_size): Use ptrdiff_t rather than size_t, as we prefer
signed integers.
(elsz): Make it a (signed) constant.
(bidi_cache_iterator_state): Check for size-calculation overflow.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 17:19:10 +0000 (19:19 +0200)]
(describe_map_tree): Don't insert a double newline at the end of the string
Return whether we inserted something. This should allow the caller to
decide whether to insert more newlines or not.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 16:59:26 +0000 (18:59 +0200)]
Clarify the `call-interactively' doc string, and add an example.
Paul Eggert [Thu, 7 Jul 2011 16:58:24 +0000 (09:58 -0700)]
* alloc.c: Integer signedness and overflow fixes.
Do not impose an arbitrary 32-bit limit on malloc sizes when debugging.
(__malloc_size_t): Default to size_t, not to int.
(pure_size, pure_bytes_used_before_overflow, stack_copy_size)
(Fgarbage_collect, mark_object_loop_halt, mark_object):
Prefer ptrdiff_t to size_t when either would do, as we prefer
signed integers.
(XMALLOC_OVERRUN_CHECK_OVERHEAD): New macro.
(xmalloc_overrun_check_header, xmalloc_overrun_check_trailer):
Now const. Initialize with values that are in range even if char
is signed.
(XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): Remove, replacing with ...
(xmalloc_put_size, xmalloc_get_size): New functions. All uses changed.
These functions do the right thing with sizes > 2**32.
(check_depth): Now ptrdiff_t, not int.
(overrun_check_malloc, overrun_check_realloc, overrun_check_free):
Adjust to new way of storing sizes. Check for size overflow bugs
in rest of code.
(STRING_BYTES_MAX): Adjust to new overheads. The old code was
slightly wrong anyway, as it missed one instance of
XMALLOC_OVERRUN_CHECK_OVERHEAD.
(refill_memory_reserve): Omit needless cast to size_t.
(mark_object_loop_halt): Mark as externally visible.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 16:38:27 +0000 (18:38 +0200)]
Remove mention of `require' in ediff.texi
That's not pertinent in the installed Emacs.
Chong Yidong [Thu, 7 Jul 2011 16:18:48 +0000 (12:18 -0400)]
Merge from emacs-23 branch
Chong Yidong [Thu, 7 Jul 2011 16:18:25 +0000 (12:18 -0400)]
Merge from emacs-23 branch
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 15:59:00 +0000 (17:59 +0200)]
Note that :custom-show is obsolete.
Eli Zaretskii [Thu, 7 Jul 2011 15:39:23 +0000 (18:39 +0300)]
Fix bug #9015 with a bogus crash with glyphless characters on a TTY.
src/term.c (produce_glyphs) <xassert>: Allow IT_GLYPHLESS in it->what.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 15:14:17 +0000 (17:14 +0200)]
Work around gnutls failures
* net/network-stream.el (network-stream-open-starttls): If gnutls
negotiation fails, then possibly try again with a non-encrypted
connection.
Andreas Schwab [Thu, 7 Jul 2011 15:07:54 +0000 (17:07 +0200)]
* configure.in (maintainer-mode): Reflect default in help string.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 14:54:12 +0000 (16:54 +0200)]
Update doc string of `smtpmail-stream-type'.
* mail/smtpmail.el (smtpmail-stream-type): Note that `plain' can
be used.
Juanma Barranquero [Thu, 7 Jul 2011 13:55:12 +0000 (15:55 +0200)]
admin/unidata/makefile.w32-in: Duplicate change in Makefile.in (revno:105007).
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 11:59:05 +0000 (13:59 +0200)]
Mention the `send-mail-function' default change.
Lars Magne Ingebrigtsen [Thu, 7 Jul 2011 11:18:17 +0000 (13:18 +0200)]
* NEWS: Clarify `smtpmail-auth-credentials' non-existence.
Richard Stallman [Thu, 7 Jul 2011 10:35:43 +0000 (06:35 -0400)]
Fix bugs finding grep hits in Rmail buffers.
Glenn Morris [Thu, 7 Jul 2011 10:19:23 +0000 (06:19 -0400)]
Auto-commit of generated files.
Daiki Ueno [Thu, 7 Jul 2011 09:20:37 +0000 (18:20 +0900)]
Add a major mode to edit plstore files.
* plstore.el: Add documentation.
(plstore-mode): New mode to edit plstore file.
(plstore-mode-toggle-display, plstore-mode-original)
(plstore-mode-decoded): New command.
(plstore--encode, plstore--decode, plstore--write-contents-functions)
(plstore--insert-buffer, plstore--make): New function.
(plstore-open, plstore-save): Simplify by using them.
Kenichi Handa [Thu, 7 Jul 2011 07:12:34 +0000 (16:12 +0900)]
Ignore a static composition that starts before the current checking position in redisplay.
Kenichi Handa [Thu, 7 Jul 2011 07:11:54 +0000 (16:11 +0900)]
Ignore a static composition that starts before the current checking position in redisplay.
Kenichi Handa [Thu, 7 Jul 2011 04:21:49 +0000 (13:21 +0900)]
Add C interface for Unicode character property table.
Kenichi Handa [Thu, 7 Jul 2011 04:20:12 +0000 (13:20 +0900)]
merge trunk
Kenichi Handa [Thu, 7 Jul 2011 04:16:52 +0000 (13:16 +0900)]
chartab.c (sub_char_table_set_range): Fix previous change.
Dan Nicolaescu [Thu, 7 Jul 2011 03:24:33 +0000 (20:24 -0700)]
Simplify Irix build, remove iris4d.h file.
* configure.in: Remove reference to iris4d.h.
* src/m/iris4d.h: Remove file, move contents ...
* src/s/irix6-5.h: ... here.
Paul Eggert [Thu, 7 Jul 2011 02:24:56 +0000 (19:24 -0700)]
* xselect.c: Integer signedness and overflow fixes.
(Fx_register_dnd_atom, x_handle_dnd_message):
Use ptrdiff_t, not size_t, since we prefer signed.
(Fx_register_dnd_atom): Check for ptrdiff_t (and size_t) overflow.
* xterm.h (struct x_display_info): Use ptrdiff_t, not size_t, for
x_dnd_atoms_size and x_dnd_atoms_length.
Paul Eggert [Thu, 7 Jul 2011 02:14:52 +0000 (19:14 -0700)]
* doprnt.c: Prefer signed to unsigned when either works.
* eval.c (verror):
* doprnt.c (doprnt):
* lisp.h (doprnt):
* xdisp.c (vmessage):
Use ptrdiff_t, not size_t, when using or implementing doprnt,
since the sizes cannot exceed ptrdiff_t bounds anyway, and we
prefer signed arithmetic to avoid comparison confusion.
* doprnt.c (doprnt): Avoid a "+ 1" that can't overflow,
but is a bit tricky.
Chong Yidong [Thu, 7 Jul 2011 01:48:14 +0000 (21:48 -0400)]
Tweak to `button' face in custom themes.
* etc/themes/dichromacy-theme.el:
* etc/themes/tango-theme.el:
* etc/themes/tango-dark-theme.el:
* etc/themes/wheatgrass-theme.el: Don't define button face separately;
it inherits from link now.
Chong Yidong [Thu, 7 Jul 2011 01:46:59 +0000 (21:46 -0400)]
Error in next-buffer or previous-buffer if called from minibuffer.
* lisp/window.el (next-buffer, previous-buffer): Signal an error if
called from a minibuffer window.
* lisp/bindings.el: Revert 2011-07-04 change.
Paul Eggert [Thu, 7 Jul 2011 01:44:57 +0000 (18:44 -0700)]
Merge from trunk.
Paul Eggert [Thu, 7 Jul 2011 01:32:56 +0000 (18:32 -0700)]
Assume freestanding C89 headers, string.h, stdlib.h.
Paul Eggert [Wed, 6 Jul 2011 23:34:39 +0000 (16:34 -0700)]
Merge from trunk.
Paul Eggert [Wed, 6 Jul 2011 23:29:03 +0000 (16:29 -0700)]
Add Bug#.
Kenichi Handa [Wed, 6 Jul 2011 23:28:00 +0000 (08:28 +0900)]
merge trunk
Kenichi Handa [Wed, 6 Jul 2011 22:43:48 +0000 (07:43 +0900)]
Add C interface for Unicode character property table.
Richard Stallman [Wed, 6 Jul 2011 22:43:46 +0000 (18:43 -0400)]
Rmail mime: Use markers for positions in entities.
Katsumi Yamaoka [Wed, 6 Jul 2011 22:39:47 +0000 (22:39 +0000)]
lisp/gnus/ChangeLog (2011-07-04): Add missing entry.
Paul Eggert [Wed, 6 Jul 2011 22:23:30 +0000 (15:23 -0700)]
Merge: Remove more assumptions re struct layout (Bug#8884).
Paul Eggert [Wed, 6 Jul 2011 22:22:32 +0000 (15:22 -0700)]
Remove more assumptions re struct layout (Bug#8884).
Paul Eggert [Wed, 6 Jul 2011 22:03:49 +0000 (15:03 -0700)]
Merge from trunk.
Paul Eggert [Wed, 6 Jul 2011 21:56:44 +0000 (14:56 -0700)]
Merge: Remove unportable assumption about struct layout (Bug#8884).
* buffer.c (clone_per_buffer_values): Don't assume that
sizeof (struct buffer) is a multiple of sizeof (Lisp_Object).
This isn't true in general, and it's particularly not true
if Emacs is configured with --with-wide-int.
* buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER):
New macros, used in the buffer.c change.
Paul Eggert [Wed, 6 Jul 2011 21:53:56 +0000 (14:53 -0700)]
Remove unportable assumption about struct layout (Bug#8884).
* buffer.c (clone_per_buffer_values): Don't assume that
sizeof (struct buffer) is a multiple of sizeof (Lisp_Object).
This isn't true in general, and it's particularly not true
if Emacs is configured with --with-wide-int.
* buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER):
New macros, used in the buffer.c change.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 21:34:13 +0000 (23:34 +0200)]
* mail/smtpmail.el (smtpmail-default-smtp-server): Made into a defcustom again for backwards compatibility.
Paul Eggert [Wed, 6 Jul 2011 20:13:02 +0000 (13:13 -0700)]
Merge from trunk.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 19:44:09 +0000 (21:44 +0200)]
* simple.el (shell-command-on-region): Fill.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 18:34:55 +0000 (20:34 +0200)]
* functions.texi (Calling Functions): Link to the "Interactive
Call" node.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 18:26:29 +0000 (20:26 +0200)]
* dired-aux.el (dired-kill-line): Add a doc string.
Paul Eggert [Wed, 6 Jul 2011 18:04:23 +0000 (11:04 -0700)]
Use pthread_sigmask, not sigprocmask.
* callproc.c (Fcall_process):
* sysdep.c (sys_sigblock, sys_sigunblock, sys_sigsetmask):
* process.c (create_process):
sigprocmask is portable only for single-threaded applications, and
Emacs can be multi-threaded when it uses GTK.
Paul Eggert [Wed, 6 Jul 2011 17:58:37 +0000 (10:58 -0700)]
Add gnulib support for pthread_sigmask.
* Makefile.in (GNULIB_MODULES): Add pthread_sigmask.
(GNULIB_TOOL_FLAGS): Avoid sigprocmask. Emacs does its own
implementation of 'sigprocmask' on Windows, and it assumes
'sigprocmask' on non-Windows hosts, so it doesn't need the
sigprocmask module.
* lib/signal.in.h, m4/pthread_sigmask.m4, m4/signal_h.m4:
New files, automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Automatically-imported update
due to the above changes.
* .bzrignore: Add lib/signal.h.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 17:45:01 +0000 (19:45 +0200)]
* dabbrev.el (dabbrev-abbrev-char-regexp): Note that nil defaults
to "\\sw\\|\\s_" (bug#358).
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 17:10:36 +0000 (19:10 +0200)]
* dired.el (dired-mode): Clarify "unmark or unflag".
(dired-unmark-backward): Ditto.
(dired-flag-backup-files): Ditto.
* dired-x.el (dired-mark-sexp): Ditto.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 16:50:34 +0000 (18:50 +0200)]
* NEWS: Clarify that `smtpmail-starttls-credentials' doesn't exist.
Richard Stallman [Wed, 6 Jul 2011 16:48:37 +0000 (12:48 -0400)]
Fix rmail mime search bug when entity is a string.
Lars Magne Ingebrigtsen [Wed, 6 Jul 2011 16:46:27 +0000 (18:46 +0200)]
* emacs-lisp/lisp-mode.el (eval-defun-1): Update the documentation
of faces when `M-C-x'-ing their definitions. Also
clean up the code slightly.
Richard Stallman [Wed, 6 Jul 2011 16:44:33 +0000 (12:44 -0400)]
rmailmm.el: record truncated mime entities.
Paul Eggert [Wed, 6 Jul 2011 16:35:29 +0000 (09:35 -0700)]
Merge from trunk.